﻿namespace IS.Projecto.DataAccessLayer.impl
{
    using System.Collections;
    using System.Collections.Generic;
    using System.Linq;
    using Modelo;
    using NHibernate.Criterion;

    internal class InscricaoDao : GenericDao<Inscricao>, IInscricaoDao
    {
        #region IInscricaoDao Members

        public IList<Inscricao> GetInscricoes(Curso curso)
        {
            return Session.CreateCriteria(typeof(Inscricao))
                .Add(Restrictions.Eq("CursoId", curso.Id))
                .List<Inscricao>();
        }

        #endregion
    }
}